package fenyu.personblob.bean.databean.user;

import fenyu.personblob.bean.databean.User;
import fenyu.personblob.bean.databean.blob.BlobComment;
import fenyu.personblob.bean.strategy.Strategy;
import fenyu.personblob.bean.strategy.blob.SendBlobCommentStrategy;

/**
 * create at 2018/12/21 21:59
 *
 * @author 纷羽 <gzj0078@gmail.com>
 */
public class CustomUser extends User {

    private Strategy sendBlobCommentStrategy = new SendBlobCommentStrategy();

    @Override
    public String identify() {
        return "custom";
    }

    public BlobComment comment(String text, Integer blob_id) {
        return (BlobComment) sendBlobCommentStrategy.todo(this, blob_id, text);
    }

    public BlobComment comment(String text, Integer blob_id, Integer comment_id) {
        return (BlobComment) sendBlobCommentStrategy.todo(this, blob_id, text, comment_id);
    }

}
